    <?php  echo $this->headLink()->prependStylesheet('/jquery/jquery.simpledialog/jquery.simpledialog.0.1.css'); ?>


<table class="table table-striped" style="width: 82.97872339599999%;" align="center" >
   <thead>
   
   
   
    <h1>gestion des projets</h1>
    
      <script>
	// increase the default animation speed to exaggerate the effect
	//$.fx.speeds._default = 1000;

	function ouvrir(page) 
	{
	/*
		alert(page);

		 jQuery.ajax({
			  type: "GET",
			  url: page,
			  async :false,
			  success: function(data)
			  {

				  jQuery( "#dialog" ).html(data);
				  jQuery('#dialog').simpleDialog({showCloseLabel: true});
				
				   
			  }
		  
			 });*/
	}
	
	$(function() {
		
		jQuery('.thickbox2').simpleDialog();
		
	});
	</script>
   	<?php
  		// Render each the title of each post for the current page in a list-item
	 	foreach ($this->paginator as $item) {     
	      foreach ($item as $key => $value)  {	?>
	       
	       <th style="text-align: left;"><?php echo $this->header["$key"]; ?></th>
	       <?php } break; } ?> 
	       	       <th>Actions</th>
	       
	 </thead>
	 <tbody>
	 <?php 
	  $i=0;
	 foreach ($this->paginator as $item) {
	      echo ' <tr>' ; 
	    
	      foreach ($item as $key => $value) 
	      {
	       
	       echo '<td>'. $value .'</td>' ;
	      } 
			
			echo '<td>'.'<a class="thickbox2" type="button" value="Delete"
			title="Supprimer projet"
			 
			href="'.$this->url(array('action'=>'deleteproject','module'=>'pilotage','controller'=>'Manageproject'),null,true).'?height=150&width=400&id='.$item[$this->keyOfData].'"
			
			 
			>Supprimer'.'</a> ';
			
			
?>
			
			<a href="<?php echo $this->url (
			array('controller'=>'manageproject',
			'action'=>'updateproject',"module"=>"pilotage","id"=>$item[$this->keyOfData]))?>">Modifier</a>
			</td>
			<?php 
			echo '</tr>';
	    $i++; 
	  }
  ?>
 
 </thed>
</table>

<td align="left">
<a href="<?php echo $this->url (
					              array('controller'=>'manageproject',
					                      'action'=>'addproject',"module"=>"pilotage"))?>">Ajouter un projet</a>
</td>

<br>
</br>
<p></p>
 <div class="control-group">
<?php echo $this->paginator; ?></div>

<html> 
	<head> 
		<title>http://colinramsay.co.uk ~ javascript tickertape component</title> 
    
    
     
    
	</head> 
	<body> 
		
	
	
	</body> 
</html>
